package com.rui.shiliao;

import net.youmi.android.AdManager;
import net.youmi.android.AdView;
import net.youmi.android.appoffers.AppOffersManager;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.cxj.AppActivity;

public class SLAppActivity extends AppActivity {
    public void initActivity() {
    }

    static {
        net.youmi.android.spotad.AdManager.init(appId, appSec, 7, 3, net.youmi.android.spotad.AdManager.BOTH, 10110, version, testMode);
    }

    protected void onCreate(Bundle paramBundle) {
        super.onCreate(paramBundle);
        requestWindowFeature(1);
        AdManager.init(this, appId, appSec, timeout, testMode);
        AppOffersManager.init(this, appId, appSec, testMode);
    }

    public final void setAdLayout(LinearLayout paramLinearLayout) {
        paramLinearLayout.addView(new AdView(this));
    }
}